package com.blog.service;

import com.blog.common.Constant;
import com.blog.feign.GoodFeignClient;
import com.blog.feign.OrderFeignClient;
import com.blog.seckill.goods.Good;
import com.blog.seckill.orders.GoodRequest;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

/**
 * @ClassName chatService
 * @Destription TODO
 * @Author 天堂小野花
 * @Date 2025/8/25  19:40
 * @Version 1.0
 */
@Service
public class ChatService {
    @Resource
    GoodFeignClient goodFeignClient;
    @Resource
    OrderFeignClient orderFeignClient;
    public Good chatSelectGood(Integer goodId){
        Good res = goodFeignClient.selectGoodById(goodId);
        return res;
    }
    public String createGoodOrder(Integer goodId, Integer goodNum,Integer userId){
        orderFeignClient.createOrderAi(goodId,goodNum,userId);
        return "创建成功";
    }
}
